<!DOCTYPE html>
<html lang="en" ng-app="myApp">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="angular.min.js"></script>
    <style>
            input.ng-valid { border-color: greenyellow}
        </style>
    <script>
            angular.module("myApp",[])
                .controller("myCtrl",["$scope","$timeout",function ($scope,$timeout) {
                $scope.val="谁让你打开的"
                $timeout(function(){
                    $scope.val="既然打开了就别走了"
                    $timeout(function(){
                    $scope.val="等两秒看见啥你就做啥"
                    $timeout(function(){
                    $scope.val="不要反抗"
                    $timeout(function(){
                    $scope.val="多说无益"
                    $timeout(function(){
                    $scope.val="等两秒吧"
                    $timeout(function(){
                    $scope.val="打开微信扫一扫"
                        $scope.ng=`2.jpg`
                },2000)
                },1000)
                },1000)
                },1000)
                },1000)
                },1000)
                }])
        </script>
</head>
<body ng-controller="myCtrl">
   <div>
       <h2>{{val}}</h2>
        <img ng-src="{{ng}}" style="width:200px">
   </div>
    
</body>
</html>